package com.fmjava.utils;

import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.exceptions.ClientException;
import com.aliyuncs.profile.DefaultProfile;

/*
 *@ClassName AliyunVodSDKUtils
 *@Description TODO
 *@Author 吃麻椒的花酱
 *@Date 2021/8/31 9:27
 *@Version 1.0
 */
public class AliyunVodSDKUtils {
    public static DefaultAcsClient initClient(String accessKeyId, String accessKeySecret) throws ClientException {
        // 点播服务接入区域 不能修改
        String regionId = "cn-shanghai";
        DefaultProfile profile = DefaultProfile.getProfile(
                regionId,
                accessKeyId,
                accessKeySecret);
        DefaultAcsClient client = new DefaultAcsClient(profile);
        return client;
    }
}
